package cn.edu.zut.hkxy.mapper;

import cn.edu.zut.hkxy.pojo.Downloads;
import cn.edu.zut.hkxy.pojo.DownloadsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface DownloadsMapper {
    long countByExample(DownloadsExample example);

    int deleteByExample(DownloadsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Downloads record);

    int insertSelective(Downloads record);

    List<Downloads> selectByExample(DownloadsExample example);

    Downloads selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Downloads record, @Param("example") DownloadsExample example);

    int updateByExample(@Param("record") Downloads record, @Param("example") DownloadsExample example);

    int updateByPrimaryKeySelective(Downloads record);

    int updateByPrimaryKey(Downloads record);

    //以下是自定义方法
    Downloads selectWithDocsById(@Param("id") int id);
    int insertGetId(Downloads downloads);
}